package com.byit.mapper;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.byit.builder.MapBuilder;
import com.byit.domain.SysDict;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 系统码表 Mapper 接口
 * </p>
 *
 * @author wangx
 * @since 2018-12-11
 */
@Repository
public interface SysDictMapper extends BaseMapper<SysDict> {

    List<JSONObject> selectAppNewsByType(Map<String, Object> dictType);

    List<JSONObject> selectDictByType(@Param("dictType") String dictType);

    List<JSONObject> selectDataPage(Page<SysDict> pageInfo, Map<String, Object> map);
}